#ifndef SOCKET_H
#define SOCKET_H
#include <QDialog>
#include    <QTcpServer>
#include <QTcpSocket>
#include    <QLabel>
namespace Ui {
class socket;
}

class socket : public QDialog
{
    Q_OBJECT

public:
    explicit socket(QWidget *parent = nullptr);
    ~socket();

private slots:
    void on_pushButton_clicked(bool checked);
    void onReadyRead();
    void connection();
private:
    qint64 bytesAvailable() const;
    QTcpServer *server;





    Ui::socket *ui;
};

#endif // SOCKET_H
